home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19960209-19960425 / 000210_news@columbia.edu _Fri Mar 15 00:07:37 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.3/8.7.3) with ESMTP id AAA29138 for <kermit.misc@watsun>; Fri, 15 Mar 1996 00:07:36 -0500 (EST)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.3/8.7.3) id AAA17104 for kermit.misc@watsun; Fri, 15 Mar 1996 00:07:33 -0500 (EST)
  4. Path: news.columbia.edu!sol.ctr.columbia.edu!news.msfc.nasa.gov!newsfeed.internetmci.com!info.ucla.edu!library.ucla.edu!galaxy.ucr.edu!ihnp4.ucsd.edu!dog.ee.lbl.gov!news.cs.utah.edu!cc.usu.edu!jrd
  5. From: jrd@cc.usu.edu (Joe Doupnik)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: Problem with kermit < TAKEFILE
  8. Message-ID: <1996Mar14.165937.76585@cc.usu.edu>
  9. Date: 14 Mar 96 16:59:37 MDT
  10. References: <4ia93n$ap7@news.sdd.hp.com>
  11. Organization: Utah State University
  12. Lines: 51
  13.  
  14. In article <4ia93n$ap7@news.sdd.hp.com>, Richard Brodie <brodie@sdd.hp.com> writes:
  15. > I am attempting to use kermit in a PC DOS environment to capture readings
  16. > from an instrumentation guage.  This device is connected via a 
  17. > multiplexer to the serial port COM1.
  18. > The following little script file "1.ker" works if I am in kermit and type
  19. > TAKE 1.ker
  20. >                          SET TAKE ECHO ON
  21. >                          LOG SESSION value
  22. >                          OUTPUT 1\13
  23. >                          CLOSE SESSION
  24. >                          EXIT
  25. > It commands the multiplexer to return a reading from the guage that is 
  26. > connected to its #1 input port, and when this script has finished,
  27. > the reading shows up in the file "value".
  28. > However, what I ultimately want to do is cause this script to be run
  29. > by a command issued with an exec out of a TCL program.  So I need to be 
  30. > able to set up a one line DOS command that will do it.  My first attempt
  31. > was to set up a file "take_1.ker" containing a single line:
  32. >                          TAKE 1.ker
  33. > and then at the DOS prompt type
  34. >                          kermit < take_1.ker
  35.  
  36.     MS-DOS Kermit reads its own command line, and it does have a
  37. quiet mode.
  38.         Kermit set display quiet, take 1.ker
  39. should be pretty close to what you want. If you want no reading of
  40. mskermit.ini et al then add  ,-f nul  to the line above (-f filename
  41. replacing mskermit.ini default is the meaning). Since MSKERMIT.INI
  42. is sought by default you can put anything (or nothing) in it that you
  43. wish. MSK will exit to DOS after the last DOS level command line argument
  44. has been executed; if none it stays at the Kermit prompt. If ,STAY is on
  45. the command line it also remains at the Kermit prompt.  
  46.  
  47. > Kermit does get invoked (I wish there were a quiet mode so that the stuff
  48. > that always comes out on the screen when you start kermit up could be 
  49. > turned off),  The exit command gets executed since I automatically come 
  50. > back to DOS.  But the echo doesn't take effect, the session is not 
  51. > logged, and the command is not sent out to the multiplexer.
  52. > I'd appreciate any suggestions.
  53.  
  54.     Other than the above I would recommend reading the User's Manual,
  55. details of which are listed under the HELP command.
  56.     Joe D.